package Builder;

public class Main {
    public static void main(String[] args) {
        KFCWaiter waiter = new KFCWaiter();

        // 顾客要 A 套餐
        MealBuilder a = new SubMealBuilderA();
        waiter.setMealBuilder(a);
        Meal mealA = waiter.construct();
        System.out.println("A 套餐: " + mealA.getFood() + " + " + mealA.getDrink());

        // 顾客要 B 套餐
        MealBuilder b = new SubMealBuilderB();
        waiter.setMealBuilder(b);
        Meal mealB = waiter.construct();
        System.out.println("B 套餐: " + mealB.getFood() + " + " + mealB.getDrink());
    }
}
